package com.snowm.springboot.config;

import javax.ws.rs.ApplicationPath;

import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.context.annotation.Configuration;

import com.snowm.springboot.api.RestEndPoint;
import com.snowm.springboot.jersey.RestExceptionMapper;

@Configuration
@ApplicationPath("/rest")
public class JerseyConfig extends ResourceConfig {

	public JerseyConfig() {
		register(MultiPartFeature.class);
		register(RestExceptionMapper.class);
		register(RestEndPoint.class);
	}
	
}